<!DOCTYPE html>
<head>
    <base id="base" href="${request.contextPath}">
    <meta name="viewport" content="width=device-width,initial-scale=1"/>
    <link href="/css/bootstrap.min.css" rel="stylesheet"/>
    <link href="/css/bootstrap-theme.min.css" rel="stylesheet"/>
    <meta charset="UTF-8"/>
    <title>Title</title>
</head>
<body>
<div class="panel panel-primary">
    <div class="panel-heading">
        <h3 class="panel-title">个人信息</h3>
    </div>
    <div class="panel-body" >
        昵称:<span id="nickname"></span>
        <img id="headImage" src="${user.headimgurl}">
    </div>
    <div class="panel-body hidden" id="openId">
        <span >${user.openid}</span>
    </div>
    <div class="panel-body">
        性别:<span id="sex">${user.sex}</span>
    </div>
    <div class="panel-body" >
        语言:<span id="language">${user.language}</span>
    </div>
    <div class="panel-body" >
        国家:<span id="country">${user.country}</span>
    </div>
    <div class="panel-body">
        省份:<span id="province">${user.province}</span>
    </div>
    <div class="panel-body">
        市:<span id="city">${user.city}</span>
    </div>
</div>

<div>
    <a class="btn-success" href="https://www.qq.com">Click</a>
</div>
</div>
<script src="/js/jquery-3.2.1.min.js" type="text/javascript"></script>
<script src="/js/bootstrap.min.js"></script>
<script >
    var base = $("#base").attr("href");
</script>
</body>
</html>